Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working date slider for discussion #4491

Closed
wants to merge 2 commits into from
Closed

Conversation

bryevdv
Copy link
Member

@bryevdv bryevdv commented Jun 14, 2016

addresses #2268

Opening this PR for discussion of a better solution. The problem is the build. The jq date slider has "dynamic" dependencies that are just expected to be present. There are no require calls so our build did not pick them up. This PR has "working" date range slider, but I am sure there is a better way.

ping @mattpap

@bryevdv
Copy link
Member Author

bryevdv commented Jun 14, 2016

Here is a sample server app to test, note is has some layout issues:

from bokeh.models import DateRangeSlider, HBox, WidgetBox
from bokeh.io import curdoc

from datetime import datetime

start = '2010-01-01'
end = '2015-01-01'

beginning = DateRangeSlider(
    title="Period:", name="period", value=(start,end),
    bounds=(start,end), range=(dict(days=1), None))

def cb(attr, old, new):
  print(new)

beginning.on_change('value', cb)

curdoc().add_root(HBox(children=[WidgetBox(beginning)]))

@jbrambleDC
Copy link
Contributor

@bryevdv would this be used in lieu of the DatePicker? What are current plans for fixing the styling of the DatePicker?

@bryevdv
Copy link
Member Author

bryevdv commented Sep 14, 2016

This PR as-is is not going to get merged. I am closing as rejected but will keep the branch for reference.

@bryevdv bryevdv closed this Sep 14, 2016
@bryevdv bryevdv deleted the bryanv/2269_date_slider branch March 18, 2017 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants